import org.checkerframework.checker.units.qual.K;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * Created by rocklee on 2022/3/30 9:31
 */
public class MapX<T> extends LinkedHashMap<String,Object> {
  private int errCode;
  private String message;
  private T result;
  public MapX(int initialCapacity, float loadFactor) {
    super(initialCapacity, loadFactor);
  }
  public MapX(int initialCapacity) {
    super(initialCapacity);
  }

  public MapX() {
  }

  public MapX(Map<String,Object> m) {
    super(m);
  }

  public MapX(int initialCapacity, float loadFactor, boolean accessOrder) {
    super(initialCapacity, loadFactor, accessOrder);
  }
  /*
  public int getErrCode() {
    return (int) get("errCode");
  }

  public void setErrCode(int errCode) {
    put("errCode",errCode);
  }

  public String getMessage() {
    return (String)get("message");
  }

  public void setMessage(String message) {
    put ("message",message);
  }

  public T getResult() {
    return (T) get("result");
  }

  public void setResult(T result) {
    put("result",result);
  }*/

  public int getErrCode() {
    return errCode;
  }

  public void setErrCode(int errCode) {
    this.errCode = errCode;
  }

  public String getMessage() {
    return message;
  }

  public void setMessage(String message) {
    this.message = message;
  }

  public T getResult() {
    return result;
  }

  public void setResult(T result) {
    this.result = result;
  }
}
